libxl: add libxl_domain_suspend_only to simply suspend a domain, without saving it
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Wed, 4 Apr 2018 17:01:12 +0000 (19:01 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 6 Apr 2018 08:05:25 +0000 (09:05 +0100)
commit9ee6308d5b9d227eba08b7a19fa660e7614e3d32
tree5047bea630734cf24abfd9b8c03668be0276b07c
parent18d12056ccea435dca7fcbe2085fff15bca19046
libxl: add libxl_domain_suspend_only to simply suspend a domain, without saving it

Similar functionality to libxl_domain_suspend(), but do not save domains
state to any file. Only suspend the domain and keep it in suspended
shutdown state (do not destroy it). Such domain can be later woken up
with libxl_domain_resume. The main reason for this functionality is to
suspend the host while some domains are running, potentially holding PCI
devices. This will give a chance to a driver in such a domain to
properly suspend the device.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Marcus of Wetware Labs <marcus@wetwa.re>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_domain.c